{{Extend "layout"}}
{{Block "title"}}{{"系统设置"|$.T}}{{/Block}}
{{Block "breadcrumb"}}
{{Super}}
<li class="active">{{"系统设置"|$.T}}</li>
{{/Block}}

{{Block "bodyNav"}}
{{Include "manager/settings_body_nav"}}
{{/Block}}

{{Block "head"}}
<link rel="stylesheet" type="text/css" href="{{AssetsURL}}/js/selectpage/selectpage.css?t={{BuildTime}}" />
<link rel="stylesheet" href="{{AssetsURL}}/js/jquery.crop/css/jquery.Jcrop.min.css?t={{BuildTime}}" type="text/css" />
<link rel="stylesheet" href="{{AssetsURL}}/js/jquery.uploadPreviewer/css/jquery.uploadPreviewer.min.css?t={{BuildTime}}" type="text/css" />
<link rel="stylesheet" href="{{AssetsURL}}/js/float/powerFloat.min.css?t={{BuildTime}}" charset="utf-8" />
<link rel="stylesheet" href="{{AssetsURL}}/js/intro/introjs.min.css?t={{BuildTime}}" charset="utf-8" />
{{- range $k,$v := call $.Func.getSettings -}}
  {{- if eq $.Stored.group $v.Group -}}
    {{- range $i, $t := $v.HeadTmpl -}}
      {{- if $t -}}{{$.Fetch $t $}}{{- end -}}
    {{- end -}}
  {{- end -}}
{{- end -}}
{{/Block}}
{{Block "main"}}
{{Strip}}
{{$group := $.Stored.group}}
<div class="row">
    <div class="col-md-12">
        <div class="tab-container">
            <!-- {{/*<ul class="nav nav-tabs">
            {{- range $k,$v := call $.Func.getSettings -}}
              <li{{if eq $group $v.Group}} class="active"{{end}}>
                <a href="?group={{$v.Group}}">{{$v.Short|$.T}}</a>
                < !-- <a href="?group={{$v.Group}}" data-toggle="tab">{{$v.Short|$.T}}</a> -- >
              </li>
            {{- end -}}
            </ul>*/}} -->
            <form class="form-horizontal group-border-dashed" method="POST" action="">
            <div class="tab-content">
            {{range $k,$v := call $.Func.getSettings}}
            {{if eq $group $v.Group}}
              <div class="tab-pane cont{{if eq $group $v.Group}} active{{end}}" id="{{$v.Group}}">
                    <h3 class="hthin">
                      <span class="label label-default label-xs normal pull-right">{{$v.Group}}</span>
                      {{$v.Label|$.T}}
                    </h3>
                    {{- $.Render $v -}}
              </div>
            {{end}}
            {{end}}
              <div class="form-group form-submit-group">
                  <div class="col-sm-9 col-sm-offset-2">
                    <button type="submit" class="btn btn-primary btn-lg"><i class="fa fa-save"></i> {{"保存"|$.T}}</button>
                    <button type="reset" class="btn btn-default btn-lg"><i class="fa fa-refresh"></i> {{"重置"|$.T}}</button>
                  </div>
              </div>
            </div>
            </form>
        </div>
    </div>
</div>
{{/Strip}}
{{/Block}}
{{Block "footer"}}
<script src="{{AssetsURL}}/js/float/powerFloat.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/jquery.uploadPreviewer/jquery.uploadPreviewer.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/selectpage/selectpage.min.js?t={{BuildTime}}" type="text/javascript"></script>
<script src="{{AssetsURL}}/js/jquery.upload/js/vendor/jquery.ui.widget.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/jquery.crop/js/jquery.Jcrop.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/jquery.upload/js/jquery.iframe-transport.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/jquery.upload/js/jquery.fileupload.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/loader/loader.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/editor/editor.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/intro/intro.min.js?t={{BuildTime}}"></script>
<script src="{{AssetsURL}}/js/textarea/autosize.min.js"></script>
<script src="{{AssetsURL}}/js/textarea/editor.min.js"></script>
{{- range $k,$v := call $.Func.getSettings -}}
  {{- if eq $.Stored.group $v.Group -}}
    {{- range $i, $t := $v.FootTmpl -}}
      {{- if $t -}}{{$.Fetch $t $}}{{- end -}}
    {{- end -}}
  {{- end -}}
{{- end -}}
<script type="text/javascript">
var focusInputName = '{{$.Form `focusName`}}';
</script>
<script src="{{AssetsURL}}/js/behaviour/page/settings.js?t={{BuildTime}}"></script>
{{/Block}}